/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bo;

import java.util.Comparator;

/**
 *
 * @author 47
 */
public class MenuItemComparator implements Comparator {

    public MenuItemComparator() {
    }

    public int compare(Object o1, Object o2) {
        //throw new UnsupportedOperationException("Not supported yet.");
        bo.MenuItem item1=(bo.MenuItem) o1;
        bo.MenuItem item2=(bo.MenuItem) o2;
        if(item1.getOrderCode()>item2.getOrderCode()){
            return 1;
        }else{
            return 0;
        }
    }

}
